//
//  User.m
//  Echo
//
//  Created by Liao on 14/12/16.
//  Copyright (c) 2014年 sina. All rights reserved.
//

#import "User.h"

@implementation User

@synthesize uid = _uid;
@synthesize screen_name = _screen_name;
@synthesize profile_image_url = _profile_image_url;

- (instancetype)initWithAttributes:(NSDictionary *)attributes {
    self = [super init];
    if (!self) {
        return nil;
    }
    
    _uid = @"0"; //接口数据中暂时还没有uid
    _screen_name = [attributes valueForKeyPath:@"screen_name"];
    _profile_image_url = [attributes valueForKeyPath:@"profile_image_url"];
    
    return self;
}

@end
